package com.bw.service;

import com.bw.bean.House;
import com.bw.mapper.HouseMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 *
 * @Author: yankaiyue
 * @Create: 2025/7/29 16:52
 * @Version: 1.0
 */
@Service
public class HouseServiceImpl implements HouseService {
    @Autowired
    HouseMapper houseMapper;
    @Override
    public List<House> getList() {
        return houseMapper.getList();
    }

    @Override
    public List<House> getList2(String address, Integer tid, Integer pageNum, Integer pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        return houseMapper.getList2(address,tid);
    }
}
